package com.runner.track;

import com.badlogic.gdx.math.Vector2;
import com.runner.entity.CollisionEntity;
import com.runner.utility.Locator;

public class Goal extends CollisionEntity {

	
	public Goal(Vector2 position) {
		super(position, TYPE.GOAL, GOAL_PATH, false, true, false, 1);
	}

	public void update(float delta) {
		super.update(delta);
		physics.getBody().setLinearVelocity(-Block.SPEED * Locator.getXGameSpeed() * delta, 0);
	}

	@Override
	public void collide(CollisionEntity otherBody) {
	}

}
